<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<!--axios-->
<div id="app">
    <todo>
        <todo-title :title="title"></todo-title>
        <todo-items v-for="item in items" :item="item"></todo-items>
    </todo>
</div>
<h1>ffdf3</h1>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>
    Vue.component("todo", {
        template:
            '<div>' +
            '<slot ></slot>' +
            '<ul>' +
            '<slot ></slot>' +
            '</ul>' +
            '</div>',
    })
    Vue.component("todo-title", {
        props: ['title'],
        template: '<div>{{title}}</div>'
    })
    Vue.component("todo-title2", {
        props: ['title'],
        template: '<div>{{title}}</div>'
    })
    Vue.component("todo-items", {
        props: ['item'],
        template: '<li>{{item}}</li>'
    })
    var vm = new Vue({
        el: "#app",
        data: {
            title: "cai",
            items: ["wo", "shi", "cai"]
        }
    });
</script>
</body>
</html>